home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / PInterfaces / OCEStandardMail.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  21.9 KB  |  645 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        OCEStandardMail.p
  3.  
  4.      Contains:    Apple Open Collaboration Environment Standard Mail Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT OCEStandardMail;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __OCESTANDARDMAIL__}
  27. {$SETC __OCESTANDARDMAIL__ := 1}
  28.  
  29. {$I+}
  30. {$SETC OCEStandardMailIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __APPLEEVENTS__}
  34. {$I AppleEvents.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __DIALOGS__}
  37. {$I Dialogs.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __FILES__}
  40. {$I Files.p}
  41. {$ENDC}
  42. {$IFC UNDEFINED __QUICKDRAW__}
  43. {$I Quickdraw.p}
  44. {$ENDC}
  45.  
  46. {$IFC UNDEFINED __OCEAUTHDIR__}
  47. {$I OCEAuthDir.p}
  48. {$ENDC}
  49. {$IFC UNDEFINED __OCEMAIL__}
  50. {$I OCEMail.p}
  51. {$ENDC}
  52.  
  53.  
  54. {$PUSH}
  55. {$ALIGN MAC68K}
  56. {$LibExport+}
  57.  
  58.  
  59. CONST
  60.     kSMPVersion                    = 1;
  61.  
  62.     kSMPNativeFormatName        = 'natv';
  63.  
  64.  
  65. TYPE
  66.     LetterSpecPtr = ^LetterSpec;
  67.     LetterSpec = RECORD
  68.         spec:                    ARRAY [0..2] OF UInt32;
  69.     END;
  70.  
  71.  
  72. CONST
  73.     typeLetterSpec                = 'lttr';
  74.  
  75. {    Wildcard used for filtering letter types. }
  76.     FilterAnyLetter                = 'ltr*';
  77.     FilterAppleLetterContent    = 'ltc*';
  78.     FilterImageContent            = 'lti*';
  79.  
  80.  
  81.  
  82. TYPE
  83.     LetterDescriptorPtr = ^LetterDescriptor;
  84.     LetterDescriptor = RECORD
  85.         onDisk:                    BOOLEAN;
  86.         filler1:                BOOLEAN;
  87.         CASE INTEGER OF
  88.         0: (
  89.             fileSpec:            FSSpec;
  90.             );
  91.         1: (
  92.             mailboxSpec:        LetterSpec;
  93.             );
  94.     END;
  95.  
  96. {
  97. SMPPSendAs values.  You may add the following values together to determine how the
  98. file is sent, but you may not set both kSMPSendAsEnclosureMask and kSMPSendFileOnlyMask.  This
  99. will allow you to send the letter as an image so that it will work with fax gateways
  100. and send as an enclosure as well.
  101. }
  102.  
  103. CONST
  104.     kSMPSendAsEnclosureBit        = 0;                            {  Appears as letter with enclosures  }
  105.     kSMPSendFileOnlyBit            = 1;                            {  Appears as a file in mailbox.  }
  106.     kSMPSendAsImageBit            = 2;                            {  Content imaged in letter  }
  107.  
  108. { Values of SMPPSendAs }
  109.     kSMPSendAsEnclosureMask        = $01;
  110.     kSMPSendFileOnlyMask        = $02;
  111.     kSMPSendAsImageMask            = $04;
  112.  
  113.  
  114. TYPE
  115.     SMPPSendAs                            = Byte;
  116. { Send Package Structures }
  117. {$IFC TYPED_FUNCTION_POINTERS}
  118.     SMPDrawImageProcPtr = PROCEDURE(refcon: LONGINT; inColor: BOOLEAN);
  119. {$ELSEC}
  120.     SMPDrawImageProcPtr = ProcPtr;
  121. {$ENDC}
  122.  
  123.     SMPDrawImageUPP = UniversalProcPtr;
  124.  
  125. CONST
  126.     uppSMPDrawImageProcInfo = $000001C0;
  127.  
  128. FUNCTION NewSMPDrawImageProc(userRoutine: SMPDrawImageProcPtr): SMPDrawImageUPP;
  129.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  130.     INLINE $2E9F;
  131.     {$ENDC}
  132.  
  133. PROCEDURE CallSMPDrawImageProc(refcon: LONGINT; inColor: BOOLEAN; userRoutine: SMPDrawImageUPP);
  134.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  135.     INLINE $205F, $4E90;
  136.     {$ENDC}
  137.  
  138. TYPE
  139.     SMPRecipientDescriptorPtr = ^SMPRecipientDescriptor;
  140.     SMPRecipientDescriptor = RECORD
  141.         next:                    SMPRecipientDescriptorPtr;                {   Q-Link.  }
  142.         result:                    OSErr;                                    {   result code when using the object.  }
  143.         recipient:                OCEPackedRecipientPtr;                    {   Pointer to a Packed Address.  }
  144.         size:                    UInt32;                                    {   length of recipient in bytes.  }
  145.         theAddress:                MailRecipient;                            {   structure points into recipient and theRID.  }
  146.         theRID:                    RecordID;                                {   structure points into recipient.  }
  147.     END;
  148.  
  149.     SMPEnclosureDescriptorPtr = ^SMPEnclosureDescriptor;
  150.     SMPEnclosureDescriptor = RECORD
  151.         next:                    SMPEnclosureDescriptorPtr;
  152.         result:                    OSErr;
  153.         fileSpec:                FSSpec;
  154.         fileCreator:            OSType;                                    {   Creator of this enclosure.  }
  155.         fileType:                OSType;                                    {   File Type of this enclosure.  }
  156.     END;
  157.  
  158.     SMPLetterPBPtr = ^SMPLetterPB;
  159.     SMPLetterPB = RECORD
  160.         result:                    OSErr;                                    {  result of operation  }
  161.         subject:                RStringPtr;                                {  RString  }
  162.         senderIdentity:            AuthIdentity;                            {  Letter is sent from this Identity  }
  163.         toList:                    SMPRecipientDescriptorPtr;                {  Pointer to linked list  }
  164.         ccList:                    SMPRecipientDescriptorPtr;                {  Pointer to linked list  }
  165.         bccList:                SMPRecipientDescriptorPtr;                {  Pointer to linked list  }
  166.         script:                    ScriptCode;                                {  Identifier for language  }
  167.         textSize:                Size;                                    {  length of body data  }
  168.         textBuffer:                Ptr;                                    {  body of the letter  }
  169.         sendAs:                    SInt8;                                    {  Send as Letter,Enclosure,Image  }
  170.         padByte:                SInt8;
  171.         enclosures:                SMPEnclosureDescriptorPtr;                {  files to be enclosed  }
  172.         drawImageProc:            SMPDrawImageUPP;                        {  For imaging  }
  173.         imageRefCon:            LONGINT;                                {  For imaging  }
  174.         supportsColor:            BOOLEAN;                                {  For imaging - set to true if you application supports color imaging  }
  175.         filler1:                BOOLEAN;
  176.     END;
  177.  
  178.  
  179. CONST
  180.     kSMPAppMustHandleEventBit    = 0;
  181.     kSMPAppShouldIgnoreEventBit    = 1;
  182.     kSMPContractedBit            = 2;
  183.     kSMPExpandedBit                = 3;
  184.     kSMPMailerBecomesTargetBit    = 4;
  185.     kSMPAppBecomesTargetBit        = 5;
  186.     kSMPCursorOverMailerBit        = 6;
  187.     kSMPCreateCopyWindowBit        = 7;
  188.     kSMPDisposeCopyWindowBit    = 8;
  189.  
  190. { Values of SMPMailerResult }
  191.     kSMPAppMustHandleEventMask    = $01;
  192.     kSMPAppShouldIgnoreEventMask = $02;
  193.     kSMPContractedMask            = $04;
  194.     kSMPExpandedMask            = $08;
  195.     kSMPMailerBecomesTargetMask    = $10;
  196.     kSMPAppBecomesTargetMask    = $20;
  197.     kSMPCursorOverMailerMask    = $40;
  198.     kSMPCreateCopyWindowMask    = $80;
  199.     kSMPDisposeCopyWindowMask    = $0100;
  200.  
  201.  
  202. TYPE
  203.     SMPMailerResult                        = UInt32;
  204. { Values of SMPMailerComponent}
  205.  
  206. CONST
  207.     kSMPOther                    = -1;
  208.     kSMPFrom                    = 32;
  209.     kSMPTo                        = 20;
  210.     kSMPRegarding                = 22;
  211.     kSMPSendDateTime            = 29;
  212.     kSMPAttachments                = 26;
  213.     kSMPAddressOMatic            = 16;
  214.  
  215.  
  216. TYPE
  217.     SMPMailerComponent                    = UInt32;
  218.  
  219.  
  220. CONST
  221.     kSMPToAddress                = 13;
  222.     kSMPCCAddress                = 14;
  223.     kSMPBCCAddress                = 15;
  224.  
  225.  
  226. TYPE
  227.     SMPAddressType                        = MailAttributeID;
  228.  
  229.  
  230. CONST
  231.     kSMPUndoCommand                = 0;
  232.     kSMPCutCommand                = 1;
  233.     kSMPCopyCommand                = 2;
  234.     kSMPPasteCommand            = 3;
  235.     kSMPClearCommand            = 4;
  236.     kSMPSelectAllCommand        = 5;
  237.  
  238.  
  239. TYPE
  240.     SMPEditCommand                        = UInt16;
  241.  
  242. CONST
  243.     kSMPUndoDisabled            = 0;
  244.     kSMPAppMayUndo                = 1;
  245.     kSMPMailerUndo                = 2;
  246.  
  247.  
  248. TYPE
  249.     SMPUndoState                        = UInt16;
  250. {
  251. SMPSendFormatMask:
  252.  
  253. Bitfield indicating which combinations of formats are included in,
  254. should be included or, or can be included in a letter.
  255. }
  256.  
  257. CONST
  258.     kSMPNativeBit                = 0;
  259.     kSMPImageBit                = 1;
  260.     kSMPStandardInterchangeBit    = 2;
  261.  
  262. { Values of SMPSendFormatMask }
  263.     kSMPNativeMask                = $01;
  264.     kSMPImageMask                = $02;
  265.     kSMPStandardInterchangeMask    = $04;
  266.  
  267.  
  268. TYPE
  269.     SMPSendFormatMask                    = UInt32;
  270.  
  271. {
  272.     Pseudo-events passed to the clients filter proc for initialization and cleanup.
  273. }
  274.  
  275. CONST
  276.     kSMPSendOptionsStart        = -1;
  277.     kSMPSendOptionsEnd            = -2;
  278.  
  279.  
  280. {
  281. SMPSendFormatMask:
  282.  
  283. Structure describing the format of a letter.  If kSMPNativeMask bit is set, the whichNativeFormat field indicates which of the client-defined formats to use.
  284. }
  285.  
  286.  
  287. TYPE
  288.     SMPSendFormatPtr = ^SMPSendFormat;
  289.     SMPSendFormat = RECORD
  290.         whichFormats:            SMPSendFormatMask;
  291.         whichNativeFormat:        INTEGER;                                {  0 based  }
  292.     END;
  293.  
  294.  
  295.  
  296.     SMPLetterInfoPtr = ^SMPLetterInfo;
  297.     SMPLetterInfo = RECORD
  298.         letterCreator:            OSType;
  299.         letterType:                OSType;
  300.         subject:                RString32;
  301.         sender:                    RString32;
  302.     END;
  303.  
  304.  
  305.  
  306. CONST
  307.     kSMPSave                    = 0;
  308.     kSMPSaveAs                    = 1;
  309.     kSMPSaveACopy                = 2;
  310.  
  311.  
  312. TYPE
  313.     SMPSaveType                            = UInt16;
  314. {$IFC TYPED_FUNCTION_POINTERS}
  315.     FrontWindowProcPtr = FUNCTION(clientData: LONGINT): WindowPtr;
  316. {$ELSEC}
  317.     FrontWindowProcPtr = ProcPtr;
  318. {$ENDC}
  319.  
  320. {$IFC TYPED_FUNCTION_POINTERS}
  321.     PrepareMailerForDrawingProcPtr = PROCEDURE(window: WindowPtr; clientData: LONGINT);
  322. {$ELSEC}
  323.     PrepareMailerForDrawingProcPtr = ProcPtr;
  324. {$ENDC}
  325.  
  326.     FrontWindowUPP = UniversalProcPtr;
  327.     PrepareMailerForDrawingUPP = UniversalProcPtr;
  328.  
  329. CONST
  330.     uppFrontWindowProcInfo = $000000F0;
  331.     uppPrepareMailerForDrawingProcInfo = $000003C0;
  332.  
  333. FUNCTION NewFrontWindowProc(userRoutine: FrontWindowProcPtr): FrontWindowUPP;
  334.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  335.     INLINE $2E9F;
  336.     {$ENDC}
  337.  
  338. FUNCTION NewPrepareMailerForDrawingProc(userRoutine: PrepareMailerForDrawingProcPtr): PrepareMailerForDrawingUPP;
  339.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  340.     INLINE $2E9F;
  341.     {$ENDC}
  342.  
  343. FUNCTION CallFrontWindowProc(clientData: LONGINT; userRoutine: FrontWindowUPP): WindowPtr;
  344.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  345.     INLINE $205F, $4E90;
  346.     {$ENDC}
  347.  
  348. PROCEDURE CallPrepareMailerForDrawingProc(window: WindowPtr; clientData: LONGINT; userRoutine: PrepareMailerForDrawingUPP);
  349.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  350.     INLINE $205F, $4E90;
  351.     {$ENDC}
  352.  
  353. TYPE
  354. {$IFC TYPED_FUNCTION_POINTERS}
  355.     SendOptionsFilterProcPtr = FUNCTION(theDialog: DialogPtr; VAR theEvent: EventRecord; itemHit: INTEGER; clientData: LONGINT): BOOLEAN;
  356. {$ELSEC}
  357.     SendOptionsFilterProcPtr = ProcPtr;
  358. {$ENDC}
  359.  
  360.     SendOptionsFilterUPP = UniversalProcPtr;
  361.  
  362. CONST
  363.     uppSendOptionsFilterProcInfo = $00003BD0;
  364.  
  365. FUNCTION NewSendOptionsFilterProc(userRoutine: SendOptionsFilterProcPtr): SendOptionsFilterUPP;
  366.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  367.     INLINE $2E9F;
  368.     {$ENDC}
  369.  
  370. FUNCTION CallSendOptionsFilterProc(theDialog: DialogPtr; VAR theEvent: EventRecord; itemHit: INTEGER; clientData: LONGINT; userRoutine: SendOptionsFilterUPP): BOOLEAN;
  371.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  372.     INLINE $205F, $4E90;
  373.     {$ENDC}
  374.  
  375. TYPE
  376.     SMPMailerStatePtr = ^SMPMailerState;
  377.     SMPMailerState = RECORD
  378.         mailerCount:            INTEGER;
  379.         currentMailer:            INTEGER;
  380.         upperLeft:                Point;
  381.         hasBeenReceived:        BOOLEAN;
  382.         isTarget:                BOOLEAN;
  383.         isExpanded:                BOOLEAN;
  384.         canMoveToTrash:            BOOLEAN;
  385.         canTag:                    BOOLEAN;
  386.         padByte2:                SInt8;
  387.         changeCount:            UInt32;
  388.         targetComponent:        SMPMailerComponent;
  389.         canCut:                    BOOLEAN;
  390.         canCopy:                BOOLEAN;
  391.         canPaste:                BOOLEAN;
  392.         canClear:                BOOLEAN;
  393.         canSelectAll:            BOOLEAN;
  394.         padByte3:                SInt8;
  395.         undoState:                SMPUndoState;
  396.         undoWhat:                Str63;
  397.     END;
  398.  
  399.  
  400.     SMPSendOptionsPtr = ^SMPSendOptions;
  401.     SMPSendOptions = RECORD
  402.         signWhenSent:            BOOLEAN;
  403.         priority:                SInt8;
  404.     END;
  405.  
  406.     SMPSendOptionsHandle                = ^SMPSendOptionsPtr;
  407.  
  408.     SMPCloseOptionsPtr = ^SMPCloseOptions;
  409.     SMPCloseOptions = RECORD
  410.         moveToTrash:            BOOLEAN;
  411.         addTag:                    BOOLEAN;
  412.         tag:                    RString32;
  413.     END;
  414.  
  415.  
  416. {----------------------------------------------------------------------------------------
  417.     Send Package Routines
  418. ----------------------------------------------------------------------------------------}
  419. FUNCTION SMPSendLetter(theLetter: SMPLetterPBPtr): OSErr;
  420.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  421.     INLINE $203C, $0002, $01F4, $AA5D;
  422.     {$ENDC}
  423. FUNCTION SMPNewPage(VAR newHeader: OpenCPicParams): OSErr;
  424.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  425.     INLINE $203C, $0002, $0834, $AA5D;
  426.     {$ENDC}
  427. FUNCTION SMPImageErr: OSErr;
  428.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  429.     INLINE $203C, $0000, $0835, $AA5D;
  430.     {$ENDC}
  431. FUNCTION SMPResolveToRecipient(dsSpec: PackedDSSpecPtr; VAR recipientList: SMPRecipientDescriptorPtr; identity: AuthIdentity): OSErr;
  432.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  433.     INLINE $203C, $0006, $044C, $AA5D;
  434.     {$ENDC}
  435.  
  436.  
  437. FUNCTION SMPInitMailer(mailerVersion: LONGINT): OSErr;
  438.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  439.     INLINE $203C, $0002, $1285, $AA5D;
  440.     {$ENDC}
  441. FUNCTION SMPGetDimensions(VAR width: INTEGER; VAR contractedHeight: INTEGER; VAR expandedHeight: INTEGER): OSErr;
  442.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  443.     INLINE $203C, $0006, $125C, $AA5D;
  444.     {$ENDC}
  445. FUNCTION SMPGetTabInfo(VAR firstTab: SMPMailerComponent; VAR lastTab: SMPMailerComponent): OSErr;
  446.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  447.     INLINE $203C, $0004, $1274, $AA5D;
  448.     {$ENDC}
  449. FUNCTION SMPNewMailer(window: WindowPtr; upperLeft: Point; canContract: BOOLEAN; initiallyExpanded: BOOLEAN; identity: AuthIdentity; prepareMailerForDrawingCB: PrepareMailerForDrawingUPP; clientData: LONGINT): OSErr;
  450.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  451.     INLINE $203C, $000C, $125D, $AA5D;
  452.     {$ENDC}
  453. FUNCTION SMPPrepareToClose(window: WindowPtr): OSErr;
  454.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  455.     INLINE $203C, $0002, $1287, $AA5D;
  456.     {$ENDC}
  457. FUNCTION SMPCloseOptionsDialog(window: WindowPtr; closeOptions: SMPCloseOptionsPtr): OSErr;
  458.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  459.     INLINE $203C, $0004, $1288, $AA5D;
  460.     {$ENDC}
  461. FUNCTION SMPTagDialog(window: WindowPtr; VAR theTag: RString32): OSErr;
  462.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  463.     INLINE $203C, $0004, $128B, $AA5D;
  464.     {$ENDC}
  465. FUNCTION SMPDisposeMailer(window: WindowPtr; closeOptions: SMPCloseOptionsPtr): OSErr;
  466.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  467.     INLINE $203C, $0004, $125E, $AA5D;
  468.     {$ENDC}
  469. FUNCTION SMPMailerEvent({CONST}VAR event: EventRecord; VAR whatHappened: SMPMailerResult; frontWindowCB: FrontWindowUPP; clientData: LONGINT): OSErr;
  470.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  471.     INLINE $203C, $0008, $125F, $AA5D;
  472.     {$ENDC}
  473. FUNCTION SMPClearUndo(window: WindowPtr): OSErr;
  474.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  475.     INLINE $203C, $0002, $1275, $AA5D;
  476.     {$ENDC}
  477. FUNCTION SMPMailerEditCommand(window: WindowPtr; command: SMPEditCommand; VAR whatHappened: SMPMailerResult): OSErr;
  478.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  479.     INLINE $203C, $0005, $1260, $AA5D;
  480.     {$ENDC}
  481. FUNCTION SMPMailerForward(window: WindowPtr; from: AuthIdentity): OSErr;
  482.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  483.     INLINE $203C, $0004, $1261, $AA5D;
  484.     {$ENDC}
  485. FUNCTION SMPMailerReply(originalLetter: WindowPtr; newLetter: WindowPtr; replyToAll: BOOLEAN; upperLeft: Point; canContract: BOOLEAN; initiallyExpanded: BOOLEAN; identity: AuthIdentity; prepareMailerForDrawingCB: PrepareMailerForDrawingUPP; clientData: LONGINT): OSErr;
  486.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  487.     INLINE $203C, $000F, $1262, $AA5D;
  488.     {$ENDC}
  489. FUNCTION SMPGetMailerState(window: WindowPtr; VAR itsState: SMPMailerState): OSErr;
  490.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  491.     INLINE $203C, $0004, $1263, $AA5D;
  492.     {$ENDC}
  493. FUNCTION SMPSendOptionsDialog(window: WindowPtr; VAR documentName: Str255; VAR nativeFormatNames: StringPtr; nameCount: UInt16; canSend: SMPSendFormatMask; VAR currentFormat: SMPSendFormat; filterProc: SendOptionsFilterUPP; clientData: LONGINT; VAR shouldSend: SMPSendFormat; sendOptions: SMPSendOptionsPtr): OSErr;
  494.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  495.     INLINE $203C, $0013, $1388, $AA5D;
  496.     {$ENDC}
  497.  
  498. FUNCTION SMPPrepareCoverPages(window: WindowPtr; VAR pageCount: INTEGER): OSErr;
  499.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  500.     INLINE $203C, $0004, $1264, $AA5D;
  501.     {$ENDC}
  502. FUNCTION SMPDrawNthCoverPage(window: WindowPtr; pageNumber: INTEGER; doneDrawingCoverPages: BOOLEAN): OSErr;
  503.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  504.     INLINE $203C, $0004, $1265, $AA5D;
  505.     {$ENDC}
  506. FUNCTION SMPPrepareToChange(window: WindowPtr): OSErr;
  507.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  508.     INLINE $203C, $0002, $1289, $AA5D;
  509.     {$ENDC}
  510. FUNCTION SMPContentChanged(window: WindowPtr): OSErr;
  511.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  512.     INLINE $203C, $0002, $126F, $AA5D;
  513.     {$ENDC}
  514. FUNCTION SMPBeginSave(window: WindowPtr; {CONST}VAR diskLetter: FSSpec; creator: OSType; fileType: OSType; saveType: SMPSaveType; VAR mustAddContent: BOOLEAN): OSErr;
  515.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  516.     INLINE $203C, $000B, $1266, $AA5D;
  517.     {$ENDC}
  518. FUNCTION SMPEndSave(window: WindowPtr; okToSave: BOOLEAN): OSErr;
  519.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  520.     INLINE $203C, $0003, $1270, $AA5D;
  521.     {$ENDC}
  522. FUNCTION SMPBeginSend(window: WindowPtr; creator: OSType; fileType: OSType; sendOptions: SMPSendOptionsPtr; VAR mustAddContent: BOOLEAN): OSErr;
  523.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  524.     INLINE $203C, $000A, $1267, $AA5D;
  525.     {$ENDC}
  526. FUNCTION SMPEndSend(window: WindowPtr; okToSend: BOOLEAN): OSErr;
  527.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  528.     INLINE $203C, $0003, $1271, $AA5D;
  529.     {$ENDC}
  530. FUNCTION SMPOpenLetter({CONST}VAR letter: LetterDescriptor; window: WindowPtr; upperLeft: Point; canContract: BOOLEAN; initiallyExpanded: BOOLEAN; prepareMailerForDrawingCB: PrepareMailerForDrawingUPP; clientData: LONGINT): OSErr;
  531.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  532.     INLINE $203C, $000C, $1268, $AA5D;
  533.     {$ENDC}
  534. FUNCTION SMPAddMainEnclosure(window: WindowPtr; {CONST}VAR enclosure: FSSpec): OSErr;
  535.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  536.     INLINE $203C, $0004, $127D, $AA5D;
  537.     {$ENDC}
  538. FUNCTION SMPGetMainEnclosureFSSpec(window: WindowPtr; VAR enclosureDir: FSSpec): OSErr;
  539.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  540.     INLINE $203C, $0004, $127E, $AA5D;
  541.     {$ENDC}
  542. FUNCTION SMPAddContent(window: WindowPtr; segmentType: MailSegmentType; appendFlag: BOOLEAN; buffer: UNIV Ptr; bufferSize: UInt32; textScrap: StScrpPtr; startNewScript: BOOLEAN; script: ScriptCode): OSErr;
  543.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  544.     INLINE $203C, $000C, $127A, $AA5D;
  545.     {$ENDC}
  546. FUNCTION SMPReadContent(window: WindowPtr; segmentTypeMask: MailSegmentMask; buffer: UNIV Ptr; bufferSize: UInt32; VAR dataSize: UInt32; textScrap: StScrpPtr; VAR script: ScriptCode; VAR segmentType: MailSegmentType; VAR endOfScript: BOOLEAN; VAR endOfSegment: BOOLEAN; VAR endOfContent: BOOLEAN; VAR segmentLength: LONGINT; VAR segmentID: LONGINT): OSErr;
  547.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  548.     INLINE $203C, $0019, $127B, $AA5D;
  549.     {$ENDC}
  550. FUNCTION SMPGetFontNameFromLetter(window: WindowPtr; fontNum: INTEGER; VAR fontName: Str255; doneWithFontTable: BOOLEAN): OSErr;
  551.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  552.     INLINE $203C, $0006, $127C, $AA5D;
  553.     {$ENDC}
  554. FUNCTION SMPAddBlock(window: WindowPtr; {CONST}VAR blockType: OCECreatorType; append: BOOLEAN; buffer: UNIV Ptr; bufferSize: UInt32; mode: MailBlockMode; offset: UInt32): OSErr;
  555.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  556.     INLINE $203C, $000C, $127F, $AA5D;
  557.     {$ENDC}
  558. FUNCTION SMPReadBlock(window: WindowPtr; {CONST}VAR blockType: OCECreatorType; blockIndex: UInt16; buffer: UNIV Ptr; bufferSize: UInt32; dataOffset: UInt32; VAR dataSize: UInt32; VAR endOfBlock: BOOLEAN; VAR remaining: UInt32): OSErr;
  559.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  560.     INLINE $203C, $0011, $1280, $AA5D;
  561.     {$ENDC}
  562. FUNCTION SMPEnumerateBlocks(window: WindowPtr; startIndex: UInt16; buffer: UNIV Ptr; bufferSize: UInt32; VAR dataSize: UInt32; VAR nextIndex: UInt16; VAR more: BOOLEAN): OSErr;
  563.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  564.     INLINE $203C, $000D, $1281, $AA5D;
  565.     {$ENDC}
  566. FUNCTION SMPDrawMailer(window: WindowPtr): OSErr;
  567.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  568.     INLINE $203C, $0002, $1269, $AA5D;
  569.     {$ENDC}
  570.  
  571. FUNCTION SMPSetSubject(window: WindowPtr; {CONST}VAR text: RString): OSErr;
  572.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  573.     INLINE $203C, $0004, $126B, $AA5D;
  574.     {$ENDC}
  575. FUNCTION SMPSetFromIdentity(window: WindowPtr; from: AuthIdentity): OSErr;
  576.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  577.     INLINE $203C, $0004, $126C, $AA5D;
  578.     {$ENDC}
  579. FUNCTION SMPAddAddress(window: WindowPtr; addrType: SMPAddressType; VAR address: OCEPackedRecipient): OSErr;
  580.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  581.     INLINE $203C, $0005, $126D, $AA5D;
  582.     {$ENDC}
  583. FUNCTION SMPAddAttachment(window: WindowPtr; {CONST}VAR attachment: FSSpec): OSErr;
  584.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  585.     INLINE $203C, $0004, $126E, $AA5D;
  586.     {$ENDC}
  587. FUNCTION SMPAttachDialog(window: WindowPtr): OSErr;
  588.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  589.     INLINE $203C, $0002, $1276, $AA5D;
  590.     {$ENDC}
  591.  
  592. FUNCTION SMPExpandOrContract(window: WindowPtr; expand: BOOLEAN): OSErr;
  593.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  594.     INLINE $203C, $0003, $1272, $AA5D;
  595.     {$ENDC}
  596.  
  597. FUNCTION SMPMoveMailer(window: WindowPtr; dh: INTEGER; dv: INTEGER): OSErr;
  598.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  599.     INLINE $203C, $0004, $126A, $AA5D;
  600.     {$ENDC}
  601.  
  602. FUNCTION SMPBecomeTarget(window: WindowPtr; becomeTarget: BOOLEAN; whichField: SMPMailerComponent): OSErr;
  603.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  604.     INLINE $203C, $0005, $1273, $AA5D;
  605.     {$ENDC}
  606.  
  607. FUNCTION SMPGetComponentSize(window: WindowPtr; whichMailer: UInt16; whichField: SMPMailerComponent; VAR size: UInt16): OSErr;
  608.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  609.     INLINE $203C, $0007, $1277, $AA5D;
  610.     {$ENDC}
  611.  
  612. FUNCTION SMPGetComponentInfo(window: WindowPtr; whichMailer: UInt16; whichField: SMPMailerComponent; buffer: UNIV Ptr): OSErr;
  613.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  614.     INLINE $203C, $0007, $1278, $AA5D;
  615.     {$ENDC}
  616.  
  617. FUNCTION SMPGetListItemInfo(window: WindowPtr; whichMailer: UInt16; whichField: SMPMailerComponent; buffer: UNIV Ptr; bufferLength: UInt32; startItem: UInt16; VAR itemCount: UInt16; VAR nextItem: UInt16; VAR more: BOOLEAN): OSErr;
  618.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  619.     INLINE $203C, $0010, $1279, $AA5D;
  620.     {$ENDC}
  621. FUNCTION SMPImage(window: WindowPtr; drawImageProc: SMPDrawImageUPP; imageRefCon: LONGINT; supportsColor: BOOLEAN): OSErr;
  622.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  623.     INLINE $203C, $0007, $1282, $AA5D;
  624.     {$ENDC}
  625. FUNCTION SMPGetNextLetter(VAR typesList: OSType; numTypes: INTEGER; VAR adjacentLetter: LetterDescriptor): OSErr;
  626.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  627.     INLINE $203C, $0005, $1286, $AA5D;
  628.     {$ENDC}
  629. FUNCTION SMPGetLetterInfo(VAR mailboxSpec: LetterSpec; VAR info: SMPLetterInfo): OSErr;
  630.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  631.     INLINE $203C, $0004, $128A, $AA5D;
  632.     {$ENDC}
  633.  
  634.  
  635. {$ALIGN RESET}
  636. {$POP}
  637.  
  638. {$SETC UsingIncludes := OCEStandardMailIncludes}
  639.  
  640. {$ENDC} {__OCESTANDARDMAIL__}
  641.  
  642. {$IFC NOT UsingIncludes}
  643.  END.
  644. {$ENDC}
  645.